package com.glory.brepda.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class EdcEntity implements Serializable {

    private String LOTID;
    private String BATCHID;
    private String PARTNAME;
    private String STEPNAME;
    private int DAWBQTY;
    private int TOTALQTY;
    private List<EdcSet> EDCSETLIST;
    private List<EdcSet> LOTLIST;
    private List<EdcItemSetLine> EDCITEMSETLINELIST;
    private String ruleMsg;


    public String getRuleMsg() {
        return ruleMsg == null ? "" : ruleMsg;
    }

    public void setRuleMsg(String ruleMsg) {
        this.ruleMsg = ruleMsg;
    }

    public List<EdcItemSetLine> getEDCITEMSETLINELIST() {
        if (EDCITEMSETLINELIST == null) {
            return new ArrayList<>();
        }
        return EDCITEMSETLINELIST;
    }

    public void setEDCITEMSETLINELIST(List<EdcItemSetLine> EDCITEMSETLINELIST) {
        this.EDCITEMSETLINELIST = EDCITEMSETLINELIST;
    }

    public int getTOTALQTY() {
        return TOTALQTY;
    }

    public void setTOTALQTY(int TOTALQTY) {
        this.TOTALQTY = TOTALQTY;
    }

    public List<EdcSet> getLOTLIST() {
        if (LOTLIST == null) {
            return new ArrayList<>();
        }
        return LOTLIST;
    }

    public void setLOTLIST(List<EdcSet> LOTLIST) {
        this.LOTLIST = LOTLIST;
    }

    public int getDAWBQTY() {
        return DAWBQTY;
    }

    public void setDAWBQTY(int DAWBQTY) {
        this.DAWBQTY = DAWBQTY;
    }

    public String getLOTID() {
        return LOTID == null ? "" : LOTID;
    }

    public void setLOTID(String LOTID) {
        this.LOTID = LOTID;
    }

    public String getBATCHID() {
        return BATCHID == null ? "" : BATCHID;
    }

    public void setBATCHID(String BATCHID) {
        this.BATCHID = BATCHID;
    }

    public String getPARTNAME() {
        return PARTNAME == null ? "" : PARTNAME;
    }

    public void setPARTNAME(String PARTNAME) {
        this.PARTNAME = PARTNAME;
    }

    public String getSTEPNAME() {
        return STEPNAME == null ? "" : STEPNAME;
    }

    public void setSTEPNAME(String STEPNAME) {
        this.STEPNAME = STEPNAME;
    }

    public List<EdcSet> getEDCSETLIST() {
        if (EDCSETLIST == null) {
            return new ArrayList<>();
        }
        return EDCSETLIST;
    }

    public void setEDCSETLIST(List<EdcSet> EDCSETLIST) {
        this.EDCSETLIST = EDCSETLIST;
    }

    public static class EdcSet implements Serializable{
        private String EDCSETNAME;
        private String DESCRIPTION;
        private String EDCSETDESCRIPTION;
        private String EDCTYPE;
        private String LOTID;
        private String MAINQTY;
        private String VALUE = "0";
        private String COMMENT;
        private String ITEM;
        private String ITEMDESC;
        private String ISMANDATORY;
        private int SUBQTY;
        private List<EdcSetBinEntity> EDCSETBINLINELIST;
        private List<EdcSetItemEntity> EDCSETITEMLINELIST;

        public String getISMANDATORY() {
            return ISMANDATORY == null ? "" : ISMANDATORY;
        }

        public void setISMANDATORY(String ISMANDATORY) {
            this.ISMANDATORY = ISMANDATORY;
        }

        public String getITEMDESC() {
            return ITEMDESC == null ? "" : ITEMDESC;
        }

        public void setITEMDESC(String ITEMDESC) {
            this.ITEMDESC = ITEMDESC;
        }

        public String getDESCRIPTION() {
            return DESCRIPTION == null ? "" : DESCRIPTION;
        }

        public void setDESCRIPTION(String DESCRIPTION) {
            this.DESCRIPTION = DESCRIPTION;
        }

        public List<EdcSetBinEntity> getEDCSETBINLINELIST() {
            if (EDCSETBINLINELIST == null) {
                return new ArrayList<>();
            }
            return EDCSETBINLINELIST;
        }

        public void setEDCSETBINLINELIST(List<EdcSetBinEntity> EDCSETBINLINELIST) {
            this.EDCSETBINLINELIST = EDCSETBINLINELIST;
        }

        public List<EdcSetItemEntity> getEDCSETITEMLINELIST() {
            if (EDCSETITEMLINELIST == null) {
                return new ArrayList<>();
            }
            return EDCSETITEMLINELIST;
        }

        public void setEDCSETITEMLINELIST(List<EdcSetItemEntity> EDCSETITEMLINELIST) {
            this.EDCSETITEMLINELIST = EDCSETITEMLINELIST;
        }

        public String getITEM() {
            return ITEM == null ? "" : ITEM;
        }

        public void setITEM(String ITEM) {
            this.ITEM = ITEM;
        }

        public String getCOMMENT() {
            return COMMENT == null ? "" : COMMENT;
        }

        public void setCOMMENT(String COMMENT) {
            this.COMMENT = COMMENT;
        }

        public String getVALUE() {
            return VALUE == null ? "" : VALUE;
        }

        public void setVALUE(String VALUE) {
            this.VALUE = VALUE;
        }

        public int getSUBQTY() {
            return SUBQTY;
        }

        public void setSUBQTY(int SUBQTY) {
            this.SUBQTY = SUBQTY;
        }

        public String getLOTID() {
            return LOTID == null ? "" : LOTID;
        }

        public void setLOTID(String LOTID) {
            this.LOTID = LOTID;
        }

        public String getMAINQTY() {
            return MAINQTY == null ? "" : MAINQTY;
        }

        public void setMAINQTY(String MAINQTY) {
            this.MAINQTY = MAINQTY;
        }

        public String getEDCSETNAME() {
            return EDCSETNAME == null ? "" : EDCSETNAME;
        }

        public void setEDCSETNAME(String EDCSETNAME) {
            this.EDCSETNAME = EDCSETNAME;
        }

        public String getEDCSETDESCRIPTION() {
            return EDCSETDESCRIPTION == null ? "" : EDCSETDESCRIPTION;
        }

        public void setEDCSETDESCRIPTION(String EDCSETDESCRIPTION) {
            this.EDCSETDESCRIPTION = EDCSETDESCRIPTION;
        }

        public String getEDCTYPE() {
            return EDCTYPE == null ? "" : EDCTYPE;
        }

        public void setEDCTYPE(String EDCTYPE) {
            this.EDCTYPE = EDCTYPE;
        }

        @Override
        public String toString() {
            return "EdcSet{" +
                    "EDCSETNAME='" + EDCSETNAME + '\'' +
                    ", EDCSETDESCRIPTION='" + EDCSETDESCRIPTION + '\'' +
                    ", EDCTYPE='" + EDCTYPE + '\'' +
                    ", LOTID='" + LOTID + '\'' +
                    ", MAINQTY='" + MAINQTY + '\'' +
                    ", VALUE='" + VALUE + '\'' +
                    ", COMMENT='" + COMMENT + '\'' +
                    ", ITEM='" + ITEM + '\'' +
                    ", SUBQTY=" + SUBQTY +
                    ", EDCSETBINLINELIST=" + EDCSETBINLINELIST +
                    ", EDCSETITEMLINELIST=" + EDCSETITEMLINELIST +
                    '}';
        }
    }

    public static class EdcSetItemEntity {
        private String NAME;
        private String OBJECTRRN;
        private String DESCRIPTION;
        private String SUBGROUPSIZE;
        private String ITEM;
        private String ITEMDESC;
        private String LSL;
        private String VALUE;
        private String ISMANDATORY;
        private ArrayList<EdcData> EDCSETBINLINEVALUELIST;

        public String getISMANDATORY() {
            return ISMANDATORY == null ? "" : ISMANDATORY;
        }

        public void setISMANDATORY(String ISMANDATORY) {
            this.ISMANDATORY = ISMANDATORY;
        }

        public String getOBJECTRRN() {
            return OBJECTRRN == null ? "" : OBJECTRRN;
        }

        public void setOBJECTRRN(String OBJECTRRN) {
            this.OBJECTRRN = OBJECTRRN;
        }

        public String getVALUE() {
            return VALUE == null ? "" : VALUE;
        }

        public void setVALUE(String VALUE) {
            this.VALUE = VALUE;
        }

        public ArrayList<EdcData> getEDCSETBINLINEVALUELIST() {
            if (EDCSETBINLINEVALUELIST == null) {
                return new ArrayList<>();
            }
            return EDCSETBINLINEVALUELIST;
        }

        public void setEDCSETBINLINEVALUELIST(ArrayList<EdcData> EDCSETBINLINEVALUELIST) {
            this.EDCSETBINLINEVALUELIST = EDCSETBINLINEVALUELIST;
        }

        public String getNAME() {
            return NAME == null ? "" : NAME;
        }

        public void setNAME(String NAME) {
            this.NAME = NAME;
        }

        public String getDESCRIPTION() {
            return DESCRIPTION == null ? "" : DESCRIPTION;
        }

        public void setDESCRIPTION(String DESCRIPTION) {
            this.DESCRIPTION = DESCRIPTION;
        }

        public String getSUBGROUPSIZE() {
            return SUBGROUPSIZE == null ? "" : SUBGROUPSIZE;
        }

        public void setSUBGROUPSIZE(String SUBGROUPSIZE) {
            this.SUBGROUPSIZE = SUBGROUPSIZE;
        }

        public String getITEM() {
            return ITEM == null ? "" : ITEM;
        }

        public void setITEM(String ITEM) {
            this.ITEM = ITEM;
        }

        public String getITEMDESC() {
            return ITEMDESC == null ? "" : ITEMDESC;
        }

        public void setITEMDESC(String ITEMDESC) {
            this.ITEMDESC = ITEMDESC;
        }

        public String getLSL() {
            return LSL == null ? "" : LSL;
        }

        public void setLSL(String LSL) {
            this.LSL = LSL;
        }
    }

    public static class EdcData {
        private String NAME;
        private String VALUE;
        private String COMMENT;

        public String getNAME() {
            return NAME == null ? "" : NAME;
        }

        public void setNAME(String NAME) {
            this.NAME = NAME;
        }

        public String getVALUE() {
            return VALUE == null ? "" : VALUE;
        }

        public void setVALUE(String VALUE) {
            this.VALUE = VALUE;
        }

        public String getCOMMENT() {
            return COMMENT == null ? "" : COMMENT;
        }

        public void setCOMMENT(String COMMENT) {
            this.COMMENT = COMMENT;
        }
    }

    public static class EdcItemSetLine {
        private Long OBJECTRRN;
        private String ISMANDATORY;
        private ArrayList<EDCItemData> EDCITEMDATALIST;

        public String getISMANDATORY() {
            return ISMANDATORY == null ? "" : ISMANDATORY;
        }

        public void setISMANDATORY(String ISMANDATORY) {
            this.ISMANDATORY = ISMANDATORY;
        }

        public Long getOBJECTRRN() {
            return OBJECTRRN == null ? 0 : OBJECTRRN;
        }

        public void setOBJECTRRN(Long OBJECTRRN) {
            this.OBJECTRRN = OBJECTRRN;
        }

        public ArrayList<EDCItemData> getEDCITEMDATALIST() {
            if (EDCITEMDATALIST == null) {
                return new ArrayList<>();
            }
            return EDCITEMDATALIST;
        }

        public void setEDCITEMDATALIST(ArrayList<EDCItemData> EDCITEMDATALIST) {
            this.EDCITEMDATALIST = EDCITEMDATALIST;
        }

        public static class EDCItemData {
            private String DCREMARK;
            private String DCNAME;
            private String DCDATA;
            private String ISMANDATORY;

            public String getISMANDATORY() {
                return ISMANDATORY == null ? "" : ISMANDATORY;
            }

            public void setISMANDATORY(String ISMANDATORY) {
                this.ISMANDATORY = ISMANDATORY;
            }

            public String getDCREMARK() {
                return DCREMARK == null ? "" : DCREMARK;
            }

            public void setDCREMARK(String DCREMARK) {
                this.DCREMARK = DCREMARK;
            }

            public String getDCNAME() {
                return DCNAME == null ? "" : DCNAME;
            }

            public void setDCNAME(String DCNAME) {
                this.DCNAME = DCNAME;
            }

            public String getDCDATA() {
                return DCDATA == null ? "" : DCDATA;
            }

            public void setDCDATA(String DCDATA) {
                this.DCDATA = DCDATA;
            }

            @Override
            public String toString() {
                return "EDCItemData{" +
                        "DCREMARK='" + DCREMARK + '\'' +
                        ", DCNAME='" + DCNAME + '\'' +
                        ", DCDATA='" + DCDATA + '\'' +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "EdcItemSetLine{" +
                    "OBJECTRRN='" + OBJECTRRN + '\'' +
                    ", EDCITEMDATALIST=" + EDCITEMDATALIST +
                    '}';
        }
    }
}
